package com.example.photo_sharing.global;

import android.app.Application;

public class App extends Application {
    //账号1
    private static String appId = "85a66d468fab4a7f8948da3fbac512ee";
    private static String appSecret = "28724410730dabf1849a9836461c2e50250e0";
    //账号2
//    private static String appId = "f3504cbd78274ada871905502f970bdd";
//    private static String appSecret = "71592ee00ed1d670341419866e0f275b8b498";

    private static String dummy_userId = "0";
    private static int current = 1;
    private static int size = 10;
    private static String defaultAvatar = "https://www.xqstudy.top/androidProjectGattaca/unlogin.png";
    private static String sex_0 = "https://www.xqstudy.top/androidProjectGattaca/0.png";
    private static String sex_1 = "https://www.xqstudy.top/androidProjectGattaca/1.png";
    private static String sex_2 = "https://www.xqstudy.top/androidProjectGattaca/2.png";
    private static String img_like_true = "https://www.xqstudy.top/androidProjectGattaca/like.png";
    private static String img_like_false = "https://www.xqstudy.top/androidProjectGattaca/unlike.png";
    private static String img_collect_true = "https://www.xqstudy.top/androidProjectGattaca/collect.png";
    private static String img_collect_false = "https://www.xqstudy.top/androidProjectGattaca/uncollect.png";
    private static String img_p_avatar = "https://www.xqstudy.top/androidProjectGattaca/l_p_avatar.png";

    public static String img_eye_close = "https://www.xqstudy.top/androidProjectGattaca/eye_close.png";
    public static String img_eye_open = "https://www.xqstudy.top/androidProjectGattaca/eye_open.png";

    private String defaultIntroduce = "这个人很神秘，还没有任何介绍";
    private int defaultSex = 0;     //0：(默认)保密 1：男 2：女

    public String getAppId(){
        return appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public int getCurrent() {
        return current;
    }

    public int getSize() {
        return size;
    }

    public String getDummy_userId() {
        return dummy_userId;
    }

    public String getDefaultAvatar() {
        return defaultAvatar;
    }

    public String getDefaultIntroduce() {
        return defaultIntroduce;
    }

    public int getDefaultSex() {
        return defaultSex;
    }

    public String getSex_0() {
        return sex_0;
    }

    public String getSex_1() {
        return sex_1;
    }

    public String getSex_2() {
        return sex_2;
    }

    public static String getImg_collect_false() {
        return img_collect_false;
    }

    public static String getImg_collect_true() {
        return img_collect_true;
    }

    public static String getImg_like_false() {
        return img_like_false;
    }

    public static String getImg_like_true() {
        return img_like_true;
    }

    public static String getImg_p_avatar() {
        return img_p_avatar;
    }

    public void setDelay(int a){
        try {
            Thread.sleep(a*2);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    //字符串判空和字符串判断是否未全空格
    public static boolean isEmpty(String str){
        if(str.length()==0 || str.trim().length() == 0){
            return true;
        }
        return false;
    }
}
